import request from '@/utils/request'

export function fetchGoodList(params) {
    return request({ url: '/good/list', method: 'GET', params })
}

export function fetchAllCate(params) {
    return request({ url: '/all/cate', method: 'GET', params })
}

export function fetchGoodCheck(params) {
    return request({ url: '/good/check', method: 'GET', params })
}


export function fetchGoodForm(data) {
    return request({ url: '/good/add/edit', method: 'POST', data })
}

export function fetchDelGood(data) {
    return request({ url: '/delgood', method: 'POST', data })
}

export default {
    fetchGoodList,
    fetchAllCate,
    fetchGoodForm,
    fetchGoodCheck,
    fetchDelGood
}
